package it.cst.util;

import it.cst.entity.Match;

import java.util.Comparator;

public class MatchComparator implements Comparator<Match>{
	@Override
	public int compare(Match m1, Match m2) {
		if(m1.getId() > m2.getId())
			return -1;
		else if(m1.getId() < m2.getId())
			return 1;
			else
		return 0;
	}

}
